package com.geekstudy.week11.runner;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.boot.ApplicationArguments;
import org.springframework.boot.ApplicationRunner;

import java.util.Arrays;

public class HelloWorldApplicationRunner implements ApplicationRunner {

    final Logger logger = LoggerFactory.getLogger(HelloWorldApplicationRunner.class);

    @Override
    public void run(ApplicationArguments args) throws Exception {
        logger.info("run args:{} ", Arrays.toString(args.getSourceArgs()));
    }
}
